package com.lee.boot.head.first.demo.service;

import com.lee.boot.head.first.demo.entity.UserEntity;



import java.util.List;
import java.util.Optional;

/**
 * @Auther: Lee
 * @Date: 2018/6/6 11:04
 * @Description:
 */
public interface UserEntityService {
    List<UserEntity> findAll();

    void delete(Long id);

    UserEntity add(UserEntity userEntity);

    UserEntity update(UserEntity userEntity);

    Optional<UserEntity> get(String name);

    List<UserEntity> getByName(String name);


}

